From: Zeeshan Ali (Khattak) Date: Mon, 15 Feb 2016 19:54:55 +0000 (+0000) Subject: location: Better name for a field X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~996 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ccfd5e35d6bf0408f36a01d28c209a2837dd4e1f;p=gnome-shell.git location: Better name for a field _proxy -> _managerProxy. https://bugzilla.gnome.org/show_bug.cgi?id=762119 --- diff --git a/js/ui/status/location.js b/js/ui/status/location.js index 29f054e16..b106fedef 100644 --- a/js/ui/status/location.js +++ b/js/ui/status/location.js @@ -104,43 +104,43 @@ const Indicator = new Lang.Class({ }, _syncIndicator: function() { - if (this._proxy == null) { + if (this._managerProxy == null) { this._indicator.visible = false; this._item.actor.visible = false; return; } - this._indicator.visible = this._proxy.InUse; + this._indicator.visible = this._managerProxy.InUse; this._item.actor.visible = this._indicator.visible; this._updateMenuLabels(); }, _connectToGeoclue: function() { - if (this._proxy != null || this._connecting) + if (this._managerProxy != null || this._connecting) return false; this._connecting = true; new GeoclueManager(Gio.DBus.system, 'org.freedesktop.GeoClue2', '/org/freedesktop/GeoClue2/Manager', - Lang.bind(this, this._onProxyReady)); + Lang.bind(this, this._onManagerProxyReady)); return true; }, - _onProxyReady: function(proxy, error) { + _onManagerProxyReady: function(proxy, error) { if (error != null) { log(error.message); this._connecting = false; return; } - this._proxy = proxy; - this._propertiesChangedId = this._proxy.connect('g-properties-changed', + this._managerProxy = proxy; + this._propertiesChangedId = this._managerProxy.connect('g-properties-changed', Lang.bind(this, this._onGeocluePropsChanged)); this._syncIndicator(); - this._proxy.AddAgentRemote('gnome-shell', Lang.bind(this, this._onAgentRegistered)); + this._managerProxy.AddAgentRemote('gnome-shell', Lang.bind(this, this._onAgentRegistered)); }, _onAgentRegistered: function(result, error) { @@ -153,10 +153,10 @@ const Indicator = new Lang.Class({ _onGeoclueVanished: function() { if (this._propertiesChangedId) { - this._proxy.disconnect(this._propertiesChangedId); + this._managerProxy.disconnect(this._propertiesChangedId); this._propertiesChangedId = 0; } - this._proxy = null; + this._managerProxy = null; this._syncIndicator(); },